var fs = require('fs');
var path = require('path');

fs.stat(path.resolve(__dirname, 'input.txt'), function (err, stats) {
  console.log('file info', stats); //true
  console.log(stats.isFile()); //true
});
// file info Stats {
//   dev: 1657144195,
//   mode: 33206,
//   nlink: 1,
//   uid: 0,
//   gid: 0,
//   rdev: 0,
//   blksize: 4096,
//   ino: 562949955117997,
//   size: 61,
//   blocks: 0,
//   atimeMs: 1698051365134.8472,
//   mtimeMs: 1698044053889.2805,
//   ctimeMs: 1698044053889.2805,
//   birthtimeMs: 1698043927930.842,
//   atime: 2023-10-23T08:56:05.135Z,
//   mtime: 2023-10-23T06:54:13.889Z,
//   ctime: 2023-10-23T06:54:13.889Z,
//   birthtime: 2023-10-23T06:52:07.931Z
// }
// true
